<?php session_start();
require '../common/Utility.php';
require '../db/configuration.php';
require '../crud/CustomSecurity.class.php';
require '../crud/Users.class.php';
loadDB();
isAdmin();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    <link rel="stylesheet" type="text/css" href="../css/page.css" />
    <link rel="stylesheet" type="text/css" href="../css/generalProduct.css" />
    <link rel="stylesheet" type="text/css" href="../css/recepti-fix.css" />
    <link rel="stylesheet" type="text/css" href="../css/products.css" />
	<title>Products</title>
	<meta name="author" content="Dimtiar Giormov">
	
</head>
<body>	

<div id="main">
		
		Table Products:
	<?php
		require '../crud/Products.class.php';
		$crud = new Products(con());
		echo count($crud->getAllAdmin());
?>

		Table smetki:
<?php
		require '../crud/Tsmetki.class.php';
		$crud = new Tsmetki(con());
		echo $crud->countEntries();
?>

</div>
</body>
</html>
